<div class="main-content">
	<header>
		<a href="<?php echo bu('admin/banners/new'); ?>" class="fr button button-gray">Add Banners</a>
		<h2>Add Banners</h2>
	</header>

	<section>
    <?php
      $form = $this->beginWidget('CActiveForm', array(
        'id' => 'form',
        'action' => bu('admin/banners/create'),
        'htmlOptions' => array(
          'class' => 'form',
          'method' => 'POST',
          'enctype' => 'multipart/form-data',
        ),
      ));
    ?>
			<fieldset>
				<legend>Please insert your banners info</legend>
				<label>Name <em>*</em></label>
        <?php echo $form->textField($banner, 'name', array('required' => 'required')); ?>
        <?php echo $form->error($banner, "name"); ?>

        <label>URL <em>*</em></label>
        <?php echo $form->textField($banner, 'url', array('required' => 'required', 'value' => 'http://')); ?>
        <?php echo $form->error($banner, "url"); ?>

				<label>Image <em>*</em>
        <small>Please insert image file only! (JPG/PNG/GIF)</small></label>
				<?php echo CHtml::activeFileField($banner, 'upload', array('required' => 'required')); ?>

				<div class="action">
						<button class="button button-gray" type="submit"><span class="accept"></span>OK</button>
						<button class="button button-gray" type="reset">Reset</button>
				</div>
			</fieldset>
    <?php $this->endWidget(); ?>
	</section>
</div>